package com.yl.zqy.mapper.sys;

import com.yl.zqy.entity.sys.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单管理 Mapper 接口
 * </p>
 *
 * @author liang.yu
 * @since 2024-03-25
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> getListPid(@Param("pid") String pid);

    List<String> getUserByMenusPermission(@Param("userId") String userId);

    List<SysMenu> getUserMenus(@Param("userId") String userId);
}
